package com.parachutes.aspsystemapi.feign;

import com.parachutes.aspsystemapi.domian.Result;
import com.parachutes.aspsystemapi.domian.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;


@FeignClient(contextId = "SysUserServiceFeign", value = "asp-system", fallback = SysUserServiceFallback.class)
public interface SysUserServiceFeign {

    @GetMapping("/user")
    Result<SysUser> getUser(@RequestParam("id")Integer id);

    @PutMapping("/user")
    Result<SysUser> updateUser(@RequestBody SysUser sysUser);

}
